package ruifight.member.service;

import com.github.pagehelper.PageInfo;
import ruifight.member.model.IntegralRecord;
import ruifight.member.model.IntegralRecordExample;
import ruifight.member.service.base.BaseService;

import java.util.Map;

public interface IntegralRecordService extends BaseService<IntegralRecord, IntegralRecordExample, Long> {

    /**
     * 通过会员Id获取积分记录
     * @param cur_page
     * @param page_size
     * @param paramMap
     * @return
     */
    public PageInfo<IntegralRecord> getIntegralRecordList(int cur_page, int page_size, Map<String, String> paramMap);

    /**
     * 获取所有会员积分记录
     * @param cur_page
     * @param page_size
     * @param paramMap
     * @return
     */
    public PageInfo<IntegralRecord> getIntegralRecordAllList(int cur_page, int page_size, Map<String, String> paramMap);

    /**
     * 获取会员总消费积分
     * @param paramMap
     * @return
     */
    public int getConsumptionIntegral(Map<String, String> paramMap);
}
